//
//  ErrorUtil.swift
//  EarbudsCommon
//
//  Created by 李然 on 2024/4/28.
//

import Foundation

enum ErrorUtil {
    static func error(code: Int, message: String) -> Error {
        let error = NSError(domain: "my.error", code: code, userInfo: [NSLocalizedDescriptionKey: message])
        return error
    }
}
